/*
 * @Author: zhang gen yuan
 * @Date: 2021-09-22 09:27:48
 * @Descripttion: 
 */


import http from '/@/utils/request'

export function getList( data ) {
  return http.request( {
    method: 'get',
    url : '/task/page',
    data
  } )
}
export function getPage( data ) {
  return http.request( {
    method: 'get',
    url : '/task/page',
    data
  } )
}
export function userAll( data ) {
  return http.request( {
    method: 'get',
    url : '/user/all',
    data
  } )
}

export function projectAll() {
  return http.request( {
    method: 'get',
    url : '/project/all'
  } )
}

export function remove( data ) {
  return http.request( {
    method : 'post',
    url : '/task/remove?ids='+ data,
  } )
}

export function save(data) {
  return http.request( {
    url: '/task/save',
    method: 'post',
    data
  })
}
export function update(data) {
  return http.request( {
    url: '/task/update',
    method: 'post',
    data
  })
}


export function getDetail(id) {
  return http.request( {
    url: '/task/detail?id='+id,
    method: 'get'
  })
}
